
const app = getApp()

Page({
  data: {
    userInfo: {},
    hasUserInfo: false,
    isNewUser: true,
    canIUse: wx.canIUse('button.open-type.getUserInfo')
  },
  //事件处理函数
  bindViewTap: function () {
    wx.navigateTo({
      url: '../logs/logs'
    })
  },
  onLoad: function () {
      this.setData({
        userInfo: app.globalData.userInfo,
        hasUserInfo: true
      })
  },
  test: function(e){
    wx.navigateTo({
      url: '/pages/test/test',
    })
  }
})